home *** CD-ROM | disk | FTP | other *** search
- this.init = function()
- {
- var _loc3_ = this;
- var _loc2_ = _loc3_.attachMovie("mc.number","num_mc",0);
- _loc2_._x = 27;
- _loc2_._y = 4;
- var _loc1_ = 0;
- while(_loc1_ < 3)
- {
- _loc2_ = _loc2_.attachMovie("mc.number","num_mc",0);
- if(_loc1_ == 1)
- {
- _loc2_._x = -17;
- }
- else
- {
- _loc2_._x = -12;
- }
- _loc1_ = _loc1_ + 1;
- }
- _loc3_.pTotal = 0;
- _loc3_.pSpeed = 100;
- _loc3_.pActive = true;
- _loc3_.pMsgSent = false;
- };
- this.onEnterFrame = function()
- {
- var _loc1_ = this;
- if(_loc1_.pActive)
- {
- _loc1_.pTotal += _loc1_.pSpeed;
- _loc1_.num_mc.setTo(_loc1_.pTotal);
- if(_loc1_.pSpeed == 100)
- {
- if(_loc1_.pTotal / 22 >= 900)
- {
- _loc1_.pSpeed = 25;
- _loc1_._parent.slowPump();
- }
- }
- else if(_loc1_.pTotal / 22 >= 1000)
- {
- if(!_loc1_.pMsgSent)
- {
- _loc1_._parent.checkPumpReadout();
- _loc1_.pMsgSent = true;
- }
- else
- {
- _loc1_._parent._parent.scores_mc.addpoints(- _loc1_.pSpeed / 22);
- }
- }
- }
- };
- this.startReadout = function()
- {
- this.pActive = true;
- };
- this.stopReadout = function()
- {
- this.pActive = false;
- };
- this.resetReadout = function()
- {
- var _loc1_ = this;
- _loc1_.pTotal = 0;
- _loc1_.num_mc.setTo(_loc1_.pTotal);
- };
- this.getTimerTotal = function()
- {
- return this.pTotal;
- };
- this.init();
- stop();
-